﻿@{
    ViewBag.Title = "ShoppingCart";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts
{
    <script type="text/javascript" src="~/Scripts/App/Member/shoppingcart.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.cookie.js"></script>
}


<div class="row">
    <div class="large-10 medium-10 columns push-2">
        <div class="row">
            <div class="large-12 medium-12 columns">
                <h3 class="bottom40 border-bottom user-name" data-bind="text: $root.UserName"></h3>
                <h4>Giỏ hàng <small>Đây là trang giỏ hàng của người sử dụng</small></h4>
                <div data-bind="foreach: OrderList">
                    <div class="row cart-bag">
                        <div class="large-3 medium-3 columns push-1">
                            <div class="view view-category">
                                <img data-bind="attr: { src: ProductImg }">
                                <div class="mask">
                                    <p>Thông tin gì đây?</p>
                                    <a data-bind="attr: { href: 'GetProductDetail?Id=' + PId }" class="info wid100">Detail</a>
                                </div>
                            </div>
                        </div>
                        <div class="large-8 medium-8 columns">
                            <h5 data-bind="text: Name"></h5>
                            <p data-bind="text: Score"></p>
                            <p data-bind="text: QuantityToOrder"></p>
                            <p>
                                <small class="right"><a data-bind="click: $root.doDelete">Xóa khỏi giỏ</a></small>
                            </p>
                        </div>
                    </div>
                </div>  
            </div>
            <div class="row cart-bag">
                <div class="large-3 medium-3 columns push-1">
                    <h5>TỔNG CỘNG</h5>
                </div>
                <div class="large-8 medium-8 columns">
                    <p data-bind="text: totalPrice"></p>
                    <input type="submit" data-bind="click: $root.doOrder" value="Check out" class="right button small">
                </div>
            </div>
        </div>
    </div>
</div>
<div class="large-2 medium-2 columns pull-10">
    <ul class="side-nav">
        <li class="avatar">
            <img src="images/images/20.jpg">
        </li>
        <li>
            <a href="thongtinuser.html">Thông tin</a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="gio-hang.html">Giỏ hàng</a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="suathongtinuser.html">Sửa thông tin</a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="diem-thuong.html">Điểm thưởng</a>
        </li>
        <li class="divider"></li>
        <li>
            <a href="lich-su-giao-dich.html">Lịch sử giao dịch</a>
        </li>
    </ul>
    <div></div>
</div>

